#ifndef MESSAGESCREENSAVE_H
#define MESSAGESCREENSAVE_H

#include <QWidget>

class MessageScreenSavePrivate;

class MessageScreenSave : public QWidget
{
    Q_OBJECT

    Q_PROPERTY(int slideInterval READ slideInterval WRITE setSlideInterval)

public:
    MessageScreenSave(QWidget* parent = 0);
    ~MessageScreenSave();
    void addImage(QString filename);
    void addImageDir(QString dirName);
    void clearImages();
    void startShow();
    void stopShow();

    int slideInterval();
    void setSlideInterval(int val);

signals:
    void readNewMessage();

protected:
    void paintEvent(QPaintEvent *event);
    void mousePressEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
    void timerEvent(QTimerEvent* event);
    void showEvent(QShowEvent * event );

private:
    MessageScreenSavePrivate* d;
};


#endif
